<?php
require_once("vcl/vcl.inc.php");
require_once("lib/db_connection.php");
//Includes
use_unit("forms.inc.php");
use_unit("extctrls.inc.php");
use_unit("stdctrls.inc.php");

//Class definition
class route_fuel_delete2 extends Page
{
       function route_fuel_delete2Create($sender, $params)
       {
       $rfuel_id = $_GET['rfuel_id'];
       $veh = $_GET['veh'];
       $emp = $_GET['emp'];
       $route = $_GET['$route'];

       $query_delete = "DELETE FROM rou_fuel_tbl WHERE rfuel_id='".$rfuel_id."'";
       mysql_query($query_delete) or die("DELETE ROUTE FUEL ".mysql_error());

       redirect('route_fuel_list2.php?veh='.$veh.'&emp='.$emp.'&route='.$route);
       }

}

global $application;

global $route_fuel_delete2;

//Creates the form
$route_fuel_delete2=new route_fuel_delete2($application);

//Read from resource file
$route_fuel_delete2->loadResource(__FILE__);

//Shows the form
$route_fuel_delete2->show();

?>